﻿
using Admin.NET.Application;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Admin.NET.Web.Entry.Controllers
{
    [AllowAnonymous]
    public class FormController : Controller
    {
        private readonly SysCustomFormService _formService;
        public FormController(SysCustomFormService formService)
        {
            _formService = formService;
        }
        public IActionResult Index()
        {
            return View();
        }
        public IActionResult Add()
        {
            return View();
        }
        public IActionResult Edit()
        {
            return View();
        }
        public IActionResult Run(long id)
        {
            ViewBag.CustomForm = _formService.Get(id).Result;
            return View();
        }
    }
}